package be.kuleuven.mume.framework;

import java.io.Serializable;

public class Vak implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -9150116073651744784L;
	
	public static final String URL = Mobilenvi.getSingelton().BASEURL + "/api/user/vak";
	public static final String VAK_URL = Mobilenvi.getSingelton().BASEURL + "/api/vak/";

	public static final String KEY_NAAM = "vakNaam";
	public static final String KEY_ID = "vakId";

	private static final String ADD_URL = Mobilenvi.getSingelton().BASEURL + "/api/user/addvak/";
	private static final String REMOVE_URL = Mobilenvi.getSingelton().BASEURL + "api/user/removevak/";
	
	private String id;
	private String naam;
	private String hashTag;
	private Prof prof;
	
	public Vak() {
		
	}
	
	public Vak(String id, String naam, String hashTag) {
		this.id = id;
		this.naam = naam;
		this.hashTag = hashTag;
	}

	public String getVakId() {
		return id;
	}

	public void setVakId(String id) {
		this.id = id;
	}

	public String getName() {
		return naam;
	}

	public void setName(String naam) {
		this.naam = naam;
	}

	public String getHashTag() {
		return hashTag;
	}

	public void setHashTag(String hashTag) {
		this.hashTag = hashTag;
	}

	public void setProf(Prof prof) {
		this.prof = prof;
	}

	public Prof getProf() {
		return prof;
	}
	
	public Boolean hasProf() {
		if(prof != null)
			return true;
		return false;
	}
	
	public String toString() {
		return this.naam;
	}
	
	public static String getStudentenURL(String vakId) {
		return VAK_URL + "user/" + vakId;
	}

	public static String getVakUrl(String vakId) {
		return VAK_URL + vakId;
	}
	
	public static String getAddVakUrl(String vakId){
		return ADD_URL + vakId;
	}
	public static String getRemoveVakUrl(String vakId){
		return REMOVE_URL + vakId;
	}
}
